import request from '../utils/axios'

export function getlogin(data) {
    return request({
        url: 'user/login',
        method: 'post',
        data: data
    })
}
export function logout(data) {
    return request({
        url: 'user/logout',
        method: 'post',
        data: data
    })
}
export function getinfo(data) {
    return request({
        url: 'user/info',
        method: 'get',
        params: data
    })
}
export function getroles(params) {
    return request({
        url: 'user/getroles',
        method: 'get',
        params
    })
}
